// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

import VueAwesomeSwiper from 'vue-awesome-swiper'

import 'swiper/dist/css/swiper.css'


import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant);

import axios from 'axios';
Vue.prototype.axios = axios;


Vue.use(VueAwesomeSwiper)

Vue.config.productionTip = false


// 开发环境
if (process.env.NODE_ENV === 'development') {
    Vue.prototype.siteUrl = "https://api.yintu168.com:8866"


}

// 生产环境
if (process.env.NODE_ENV === 'production') {

    Vue.prototype.siteUrl = "https://api.yintu168.com:8866"

}


router.beforeEach((to, form, next) => {
    window.document.title = to.meta.title == undefined ? '银土收银台' : to.meta.title
    next()
})

/* eslint-disable no-new */
new Vue({
    el: '#app',
    router,
    components: {
        App
    },
    template: '<App/>'
})




